package com.example.aircraft.prop;


import com.example.aircraft.gamemode.GameBase;
import com.example.aircraft.R;
import com.example.aircraft.base.MusicThread;

public class Prop_Bomb extends AbstractProp {
    public Prop_Bomb(int locationX, int locationY, int speedX, int speedY){
        super(locationX, locationY, speedX, speedY);
        musicThread = new MusicThread(R.raw.bomb_explosion);
    }


    @Override
    /**
     * 利用观察者模式实现对敌机的清除，同时通知Game.score进行更新(如果炸弹消灭的敌机也算分的话）
     * 话说这算观察者模式吗
     */
    public void activate(){
        super.activate();
        GameBase.enemyManager.notifyAllObserver();
    }

}
